package com.oyc.demo;

import java.io.IOException;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@MapperScan("com.oyc.demo.mapper")
@SpringBootApplication
@EnableTransactionManagement
public class SpringbootChx {
	
	private static final String  url="http://localhost:8888/chx";

    public static void main(String[] args) {
        SpringApplication.run(SpringbootChx.class, args);
        //调用浏览器
        try {
			Runtime.getRuntime().exec("cmd /c start "+url);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			try {
				Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
			} catch (IOException e1) {
				// TODO Auto-generated catch block
				e1.printStackTrace();
			}
			e.printStackTrace();
		}
    } 
}
